import { request } from "@/utils/service"
import type * as Combo from "./types/combo"
/** 增 */
export function createComboDataApi(data: Combo.ICreateComboRequestData) {
  return request({
    url: "order/packageJd/add",
    method: "post",
    data
  })
}

/** 删 */
export function deleteComboDataApi(id: string) {
  return request({
    url: "order/packageJd/del",
    method: "delete",
    params: {
      id
    }
  })
}

/** 改 */
export function updateComboDataApi(data: Combo.ICreateComboRequestData) {
  return request({
    url: "order/packageJd/update",
    method: "put",
    data
  })
}

/** 查 */
export function getComboDataApi(params: Combo.IGetComboRequestData) {
  return request<any>({
    url: "order/packageJd/query",
    method: "get",
    params
  })
}
